package com.lb.activity.mapper;

import com.lb.activity.po.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author liubin
 */
public interface DeptMapper extends Mapper<Dept> {

    @Delete("DELETE FROM dept WHERE id = ${id} OR parent_id = ${id}")
    void deleteDept(@Param("id") Long id);



}
